package cn.jiyun.service.impl;

import cn.jiyun.dao.Udao;
import cn.jiyun.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class Uservice implements cn.jiyun.service.Uservice {
    @Resource
    private Udao udao;

    @Override
    public User all(Integer id) {
        return udao.selectById(id);
    }

    @Override
    public List<User> allqc() {
        return udao.selectList(null);
    }

    @Override
    public void del(Long id) {
        udao.deleteById(id);
    }
}
